import java.util.Scanner;

public class Example13 {
    public static void main(String[] args){
        int password = 123456;
        Scanner scanner = new Scanner(System.in);
        int num;
        do {
            System.out.println("请输入正确的密码：");
            num = scanner.nextInt();
        }while (num != password);
        System.out.println("密码正确");
    }
}
